package com.platform.common.core.domain.entity;

import com.platform.common.core.annotation.Excel;
import com.platform.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.NotNull;

/**
 * 海关关区对象 dic_cus
 *
 * @author xuefk
 * @date 2023-04-04
 */
public class DicCus extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @Excel(name = "id")
    private String id;

    /** 编码 */
    @Excel(name = "编码")
    @NotNull(message = "编码不能为空")
    private String cusCode;

    /** 名称 */
    @Excel(name = "名称")
    @NotNull(message = "名称不能为空")
    private String cusName;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setCusCode(String cusCode)
    {
        this.cusCode = cusCode;
    }

    public String getCusCode()
    {
        return cusCode;
    }
    public void setCusName(String cusName)
    {
        this.cusName = cusName;
    }

    public String getCusName()
    {
        return cusName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("cusCode", getCusCode())
            .append("cusName", getCusName())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .toString();
    }
}
